


file = "/test/ceshi\\url"

with open(file, 'r', encoding="UTF-8") as f:
    info = line = f.read().split("\n")

packages = []

for mumber in info:
    pack = mumber.split("/")[-1]
    if pack.startswith("patch"):
        print("异常：", pack)
    else:
        packname = '-'.join(pack.split('-')[:-2])
        if packname not in packages:
            packages.append(packname)

print(" ".join(packages))
print(len(packages))



